Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
Mac and OpenDoc are trademarks of Apple Computer, Inc.
Important Note
Documents created with 1.0 (or earlier) versions of Sound Editor will no longer work. The type names of some values has changed.
Introduction
The SoundEditor part allows users to record, playback, save, and re-record sounds from the current audio input device. It supports data stored in Mac SND format.
- SOM wrapper / C++ implementation
- clipboard support
- idle event handling
- handling of part menus
- settings dialog and extension
- old file/data type nmap resource
- dialogs
- scripting (ODSemantic extension subclass)
- balloon help
Gotchas
• Sound Editor does not correctly support being embedded in a link source or destination. The Cappuccino sample part handles these cases correctly.
To correctly handle being in a link source, you need to call ContentUpdated on each of your display frames whenever a change to your content occurs. This will cause the container that created the link to be notified that there has been a change.
To correctly handle being in a link destination, you should get the link status of a frame before trying to edit it. If it is a link destination, you should call EditInLink, and if EditInLink returns kODTrue, you should check the link status again -- this time, if it is still in a destination link, you should not allow the change to occur, otherwise, you should go ahead and make the change.